package com.zhang.service.impl;

import com.zhang.mapper.IReplyMapper;
import com.zhang.pojo.ReplyBean;
import com.zhang.service.IReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class ReplyServiceImpl implements IReplyService {
    @Autowired
    private IReplyMapper replyMapper;


    @Override
    public void addReply(ReplyBean replyBean, int mainId, int userId) {
        replyMapper.addReply(replyBean, mainId, userId);
    }
}
